<!--
 * @Author: GEOWAY\zhaoweiwen 2565088230@qq.com
 * @Date: 2022-10-09 10:05:53
 * @LastEditors: GEOWAY\zhaoweiwen 2565088230@qq.com
 * @LastEditTime: 2022-10-09 10:13:16
 * @FilePath: \arcgisdemo\index.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://js.arcgis.com/4.10/esri/css/main.css">
    <script src="https://js.arcgis.com/4.10/"></script>
    <title>Intro to MapView - Create a 2D map</title>
</head>

<body>
    <div id="mapViewDiv" style="height:600px;width:600px"></div>
</body>

</html>
<script>
    require(["esri/Map", "esri/views/MapView"], (Map, MapView) => {

        var map = new Map({
            basemap: "streets"
        });
        var view = new MapView({
            container: "mapViewDiv",  // html dom元素id，用来作为地图视图容器
            map: map               // 地图对象
        });
    });
</script>